Add Method (TKey, TValue)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Adds a new key-value pair to the dictionary. This method must be overridden in the derived class.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public abstract void Add(
	TKey key,
	TValue value
)
Visual Basic (Declaration)
Public MustOverride Sub Add ( _
	key As TKey, _
	value As TValue _
)
Visual C++
public:
virtual void Add (
	TKey key, 
	TValue value
) abstract

Parameters

key
TKey
Key to add.
value
TValue
Value to associated with the key.

Exceptions

ExceptionCondition
System..::ArgumentExceptionkey is already present in the dictionary

See Also